package com.aspire.boc.mms.gwcmp.util.enums;
/**
 * 运营商枚举
 * 1:移动;2:联通;3:电信
 * @author liming
 *
 */
public enum CarrierType {
	
	CMCC("1", "CMCC"), UNICOM("2", "UNICOM"),TELCOM("3", "TELCOM");

    private CarrierType(String id, String strValue) {
    	this.strKey = id;
        this.strValue = strValue;
    }

    private String strKey;
    private String strValue;

    public static CarrierType getResStringByKey(String strKey) {
    	
        for (CarrierType item : values()) {
            if (item.strKey.equals(strKey))
                return item;
        }
        return null;
    }
    
    public static CarrierType getResStringByValue(String strValue) {
    	
        for (CarrierType item : values()) {
            if (item.strValue.equals(strValue))
                return item;
        }
        return null;
    }

    public String getStrValue() {

        return strValue;
    }
    
}
